package com.hmall.search.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.search.pojo.Item;
import com.hmall.search.pojo.PageResult;
import com.hmall.search.pojo.RequestParams;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface IItemService extends IService<Item> {
    List<String> getSuggestions(String prefix);

    Map<String, List<String>> getFilters(RequestParams params);

    PageResult search(RequestParams params);

    void saveItemById(Long id);

    void deleteItemById(Long id);
}
